<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>变量修饰符</title>
    <script>
        //let 用来声明一个变量
        //const 用来声明常量

        for (let i = 0; i < 10; i++) {
            console.log(i);
        }

        const NAME = "ldh";

        let newArr = [9,6,5,4];

        const arr = [1, 2, 3, 4, 5];


        arr[1] = 99;


        const user = {
            id:10086,
            name:"ldh",
            age:50
        }

        user.name="张学友";

        //const声明对象时表示对象的引用地址不能改变，但是引用地址中的内容可以随意改变

    </script>
</head>
<body>

</body>
</html>